Handle
public class Handle
Method Summary | |
---|---|
void | report(\Exception exception) Report or log an exception. |
protected void | isIgnoreReport(Exception exception) |
Response | render(\Exception e) Render an exception into an HTTP response. |
void | renderForConsole(Output output, Exception e) |
protected Response | |
protected Response | convertExceptionToResponse(Exception exception) |
protected integer | getCode(\Exception exception) 获取错误编码 ErrorException则使用错误级别作为错误编码 |
protected string | getMessage(\Exception exception) 获取错误信息 ErrorException则使用错误级别作为错误编码 |
protected array | getSourceCode(\Exception exception) 获取出错文件内容 获取错误的前9行和后9行 |
protected array | getExtendData(\Exception exception) 获取异常扩展信息 用于非调试模式html返回类型显示 |
public void report(\Exception exception)
Report or log an exception.
protected void isIgnoreReport(Exception exception)
public Response render(\Exception e)
Render an exception into an HTTP response.
public void renderForConsole(Output output, Exception e)
protected Response renderHttpException(HttpException e)
protected Response convertExceptionToResponse(Exception exception)
protected integer getCode(\Exception exception)
获取错误编码 ErrorException则使用错误级别作为错误编码
protected string getMessage(\Exception exception)
获取错误信息 ErrorException则使用错误级别作为错误编码
protected array getSourceCode(\Exception exception)
获取出错文件内容 获取错误的前9行和后9行
protected array getExtendData(\Exception exception)
获取异常扩展信息 用于非调试模式html返回类型显示